package com.hellpro.lolbox.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;


/**
 * Package_Name: com.hellpro.lolbox.utils
 * Description :
 * author: HellPermanent
 * date:  2016/10/19 21:21
 * remarks：
 */
public class UIManger {
    public static void startToActivity(Context context, Class<? extends Activity> clazz) {
        context.startActivity(new Intent(context, clazz));
    }
    public static void startToWebActivity(Context context, Class<? extends Activity> clazz,String url) {
        Intent intent = new Intent(context, clazz);
        intent.putExtra("url",url);
        context.startActivity(intent);
    }
    public static void startToSmsActivity(Context context, Class<? extends Activity> clazz,String phoneNo) {
        Intent intent = new Intent(context, clazz);
        intent.putExtra("phoneNo",phoneNo);
        context.startActivity(intent);
    }
    public static void startToUserInfoActivity(Context context, Class<? extends Activity> clazz,String phoneNo,String password) {
        Intent intent = new Intent(context, clazz);
        intent.putExtra("phoneNo",phoneNo);
        intent.putExtra("password",password);
        context.startActivity(intent);
    }
    public static void startToSecondActivity(Context context, Class<? extends Activity> clazz,String url,String name) {
        Intent intent = new Intent(context, clazz);
        intent.putExtra("url",url);
        intent.putExtra("name",name);
        context.startActivity(intent);
    }
}
